def hasaki():
    def a():
        print('hasaki')
    def b():
        print('aaaaaa')
    
    print('lalalal')
    a()
    b()

hasaki()
>>>lalalal
>>>hasaki
>>>aaaaaa

a()
>>>NameError: name 'a' is not defined
b()